<div class="addInteractivities">
  {foreach from = $types item = type}
    {if $type.type_name != 'All'}
      <a class="addButton" href="create_new_interactivity.php?type={$type.type_value}">Add {$type.type_name}</a>
    {/if}
  {/foreach}
</div>
<div class="topLine">
  <hr size="1" color="gray">
</div>
<div class="title">
  <h1>Interactivities</h1>
</div>
<div class="type">
  <span>Type: </span>
  <select id="type">
    {foreach from = $types item = type}
      <option value="{$type.type_value}">{$type.type_name}</option>
    {/foreach}
  </select>
</div>
<table>
  <tr class="header">
    <td class="type">Type</td>
    <td class="name">Name</td>
    <td class="action">Action</td>
    {foreach from = $contentOfTable item = interactivity name = foo}
      {if {$smarty.foreach.foo.iteration} is div by 2}
        <tr class="even">
      {else}
        <tr class="odd">
      {/if}
        <td class="type">{$interactivity.type}</td>
        <td class="name"><a href="edit_quizz_content.php?name={$interactivity.name}&type={$interactivity.type}">{$interactivity.name}</a></td>
        <td class="action"><a class="actions">D</a><a class="actions">O</a></td>
      </tr>
    {foreachelse}
      <tr>
        <td colspan=3 class="report">
          There is no data!     
        </td>
      </tr>
    {/foreach}
  </tr>
</table>